<script setup>
import DockedDatePicker from "./DockedDatePicker.vue";
import { dateToText } from "./util.js";

const start = defineModel("start", { default: dateToText(new Date()) });
const end = defineModel("end", { default: dateToText(new Date()) });
</script>

<template>
  <div class="range-date-picker-docked">
    <DockedDatePicker label="开始日期" v-model="start"></DockedDatePicker>
    <DockedDatePicker label="结束日期" v-model="end"></DockedDatePicker>
  </div>
</template>

<style scoped>
.range-date-picker-docked {
  display: flex;
  padding: 16px;
  gap: 16px;
  justify-content: center;
}
</style>